﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using LY.Entity.Entities;
using LY.Entity;

namespace LY.Interface
{
    public interface ILoginService
    {
        /// <summary>
        /// 会员登录
        /// </summary>
        /// <param name="name"></param>
        /// <param name="pwd"></param>
        /// <param name="no"></param>
        /// <returns></returns>

        //会员注册账号保存
        int RegisterSave(U_Member member);
        //验证用户名是否重复
        int RegisterValite(string name);
        //验证手机号是否重复
        int MobileValite(string mobile);
        //手机验证码是否重复
        int MobileCodeValite(string mobile,string code,int codeId);

        Member_EX LoginUser(string username, string password);
        //根据ID获取会员信息
        Member_EX GetUserById(int id);

        //保存验证码
        int CodeSave(int code,string tel,int type);

        /// 根据IP获取省份城市
        string[] GetCityByIP(string ip);

        //验证用户账号和手机号 是否正确 
        int MemberMobileValite(string name, string mobile);

        //重置密码
        int ResetSave(U_Member member);

    }
}
